package com.yf.course.modules.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

/**
 * <p>
 * 课程与讲稿的对应实体类
 * </p>
 */
@Data
@TableName("el_course_speech")
public class CourseSpeech extends Model<CourseSpeech> {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 课程ID
     */
    @TableField("course_id")
    private String courseId;

    /**
     * 讲稿ID
     */
    @TableField("speech_id")
    private String speechId;

    public CourseSpeech() {
    }

    public CourseSpeech(String courseId, String speechId) {
        this.courseId = courseId;
        this.speechId = speechId;
    }
}
